from rest_framework_mongoengine import serializers
from . import entry_models


class AYEntrySerializer(serializers.DocumentSerializer):
    class Meta:
        model = entry_models.AYEntryModel
        fields = "__all__"



class AYEntryActionSerializer(serializers.DocumentSerializer):
    class Meta:
        model = entry_models.AYEntryModel
        fields = ['name','phonenumber','source','url','remark1','remark2']